import {
  request
} from "./request.js";

// 拿到侧边栏的菜单数据的网络请求
export function getCategory() {
  return request({
    url: '/category'
  })
}


// 拿到目录页面右上角数据
export function getCategoryImg(maitKey) {
  return request({
    url: '/subcategory',
    params: {
      maitKey
    }
  })
}


// 拿到右下角三栏的数据
export function getCategoryDetail(miniWallkey, type) {
    return request({
      url: '/subcategory/detail',
      params: {
        miniWallkey,
        type
      }
    })
  }